<?php
/**
 * Created by PhpStorm.
 * User: Egg
 * Date: 2018/3/19
 * Time: 13:24
 */

function printResult($stateCode, $data, $message)
{

}

function pack_data($stateCode, $data, $message)
{
    $result['stateCode'] = $stateCode;
    $result['data'] = $data;
    $result['message'] = $message;
    return $result;
}

function request_method_error()
{
    $result['stateCode'] = '400';
    $result['data'] = '';
    $result['message'] = 'INVALID REQUEST';
    echo json_encode($result);
}